﻿<%@ Page Title="Friend's Contact Web System" Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="FriendsContactWeb._Default" Culture="en-US" UICulture="en-US" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
            width: 96px;
        }
        .style3
        {
            width: 73px;
        }
        .style4
        {
            width: 398px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to FRIEND'S CONTACT WEB SYSTEM!
    </h2>
<p align="left" title="Friend's Calendar">
        <asp:Calendar ID="eventCalendar" runat="server" BackColor="White" 
            BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
            Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="303px" 
            Width="494px" ondayrender="eventCalendar_DayRender" 
            onselectionchanged="eventCalendar_SelectionChanged" 
            FirstDayOfWeek="Monday" 
            onvisiblemonthchanged="eventCalendar_VisibleMonthChanged" 
            ShowGridLines="True">
            <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
            <NextPrevStyle VerticalAlign="Bottom" />
            <OtherMonthDayStyle ForeColor="#808080" />
            <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
            <SelectorStyle BackColor="#CCCCCC" />
            <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
            <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
            <WeekendDayStyle BackColor="#FFFFCC" />
        </asp:Calendar>
    </p>
    <p>
        <table style="width: 299px;">
            <tr>
                <td class="style1" colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
        <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Add" 
            Width="69px" />
                </td>
                <td align="center">
                    &nbsp;</td>
                <td dir="rtl">
                    <asp:Button ID="btnDelete" runat="server" onclick="btnDelete_Click" 
                        Text="Delete" Visible="False" />
                </td>
            </tr>
        </table>
        <p>
        &nbsp;
            <table style="width: 100%; height: 306px;">
                <tr>
                    <td class="style4">
    <asp:Panel ID="eventDataPanel" runat="server" Height="276px" Visible="False" 
        Width="292px" CssClass="main">
        <asp:Label ID="eventsListLabel" runat="server" Text="Events list : "></asp:Label>
        <asp:DropDownList ID="eventTitleList" runat="server" Height="22px" 
            Width="185px" 
            AutoPostBack="True" 
            onselectedindexchanged="eventTitleList_SelectedIndexChanged">
        </asp:DropDownList>
        <br />
        <br />
        
        <asp:Label ID="titleLabel" runat="server" Text="Title : "></asp:Label>
        <asp:TextBox ID="titleTextBox" runat="server" Width="223px" MaxLength="50"></asp:TextBox>
        <br />
        <asp:Label ID="authorLabel" runat="server" Text="Author : "></asp:Label>
        <asp:TextBox ID="authorTextBox" runat="server" Width="199px" Enabled="False" 
            ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="descLabel" runat="server" Text="Description : "></asp:Label>
        <asp:TextBox ID="eventDescTextBox" runat="server" Height="86px" 
            TextMode="MultiLine" Width="282px" MaxLength="1024"></asp:TextBox>
        <br />
        <br />
        <table style="width:100%;">
            <tr>
                <td class="style2">
                    <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="Save" 
                        Width="98px" />
                </td>
                <td class="style3">
                    &nbsp;</td>
                <td dir="rtl">
                    <asp:Button ID="btnSendToOthers" runat="server" onclick="btnSendToOthers_Click" 
                        Text="Send to others" Width="99px" />
                </td>
            </tr>
        </table>
        <br />
        <br />
    </asp:Panel>
                    </td>
                    <td>
    <asp:Panel ID="feedbackPanel" runat="server" Height="331px" Visible="False" 
        Width="510px">
        <asp:GridView ID="feedbackGridView" runat="server" AllowPaging="True" 
            Width="502px" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
            GridLines="None" onrowdatabound="feedbackGridView_RowDataBound" 
            Height="213px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <columns>
                <asp:boundfield datafield="Id" headertext="ID" ReadOnly="True"/>
                <asp:boundfield datafield="Id_Event" headertext="Id Event" ReadOnly="True"/>
                <asp:boundfield datafield="Id_User" headertext="Id User" ReadOnly="True"/>
                <asp:boundfield datafield="EventTitle" headertext="Event Title"/>
                <asp:boundfield datafield="UserName" headertext="User Name" />
                <asp:boundfield datafield="Note" headertext="User Note"/>
                <asp:boundfield datafield="Mark" headertext="Feedback Mark"/>
            </columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <br />
        <br />
    </asp:Panel>
                    </td>
                </tr>
            </table>
        </p>
    </p>    
    </asp:Content>
